function util:entity_owner/find_son_distance10 with entity @s

tag @s add temp.main

#Power
execute as @n[tag=son_entity,distance=..10,type=text_display,tag=guardTower.powerDisplay] run function vs:system/game_ctrol/guard_tower/power/power_display/update with entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data

#Battery's Power
tag @n[tag=son_entity,distance=..10,type=item_display,tag=guardTower.powerItemDisplay] add temp.powerdisplayID
execute as @n[tag=son_entity,distance=..10,type=text_display,tag=guardTower.batteryPowerDisplay] run function vs:system/game_ctrol/guard_tower/power/battery_power_display/update

tag @s remove temp.main
tag @n[tag=temp.powerdisplayID,distance=..10,type=item_display] remove temp.powerdisplayID
tag @e[tag=son_entity,distance=..10] remove son_entity